package com.lening.provider.service.impl.InternalWorkOrder;

import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.InternalWorkOrder.WorkOrderTypeDAO;
import com.lening.provider.dto.InternalWorkOrder.WorkOrderTypeDTO;
import com.lening.provider.po.InternalWorkOrder.WorkOrderTypePO;
import com.lening.provider.service.InternalWorkOrder.WorkOrderTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:37
 * @description 类对象
 */
@Slf4j
@Service
public class WorkOrderTypeServiceImpl extends BaseServiceImpl<WorkOrderTypeDAO, WorkOrderTypePO, WorkOrderTypeDTO> implements WorkOrderTypeService {

    @Resource
    private WorkOrderTypeDAO workOrderTypeDAO;

    @Override
    public List<WorkOrderTypeDTO> getByName(String workOrderTypeName) {
        return workOrderTypeDAO.getByName(workOrderTypeName);
    }
}
